# $Id: PKGBUILD 87381 2013-03-30 13:00:20Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>

pkgname=libcoverart
pkgver=1.0.0
pkgrel=1
pkgdesc="C/C++ library for accessing the MusicBrainz Cover Art Archive"
arch=('i686' 'x86_64')
url="http://musicbrainz.org/doc/libcoverart"
license=('LGPL')
depends=('neon' 'jansson')
makedepends=('cmake')
source=(https://github.com/downloads/metabrainz/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('6380056bb4bc1a69790e706b4d506f50')

build() {
  cd "$srcdir/$pkgname-{PROJECT_VERSION}"

  cmake . \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd "$srcdir/$pkgname-{PROJECT_VERSION}"

  make DESTDIR="$pkgdir" install
}
